package com.miku.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 
 * @TableName tb_comment
 */
@TableName(value ="tb_comment")
@Data
@Accessors(chain = true)
public class Comment implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 评论用户Id
     */
    private Integer userId;

    /**
     * 评论文章id  （若评论类型为友链,则文章ID默认-1）
     */
    private Integer articleId;

    /**
     * 评论内容
     */
    private String commentContent;

    /**
     * 评论时间
     */
    private Date createTime;

    /**
     * 回复用户id
     */
    private Integer replyId;

    /**
     * 父评论id
     */
    private Integer parentId;

    /**
     * 评论类型(1文章   2友链   3说说)
     */
    private Integer type;

    /**
     * 是否审核  ( 0审核中   1 正常)
     */
    private Integer isReview;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    @TableField(exist = false)
    private String avatar;
    @TableField(exist = false)
    private String nickname;
    @TableField(exist = false)
    private String replyNickname;
    @TableField(exist = false)
    private String articleTitle;
}